package com.xrf;

public class TrainingExperience {
    private String trainingDate;
    private Long teachingExperience;
    private Double teacher;
    private String hostUnit;
    private Double contacts;
    private Double contactNumber;
    private String email;
    private Long employmentAgency;
    
    public TrainingExperience() {}
    
    public TrainingExperience(String trainingDate, Long teachingExperience, 
                             Double teacher, String hostUnit, Double contacts,
                             Double contactNumber, String email, Long employmentAgency) {
        this.trainingDate = trainingDate;
        this.teachingExperience = teachingExperience;
        this.teacher = teacher;
        this.hostUnit = hostUnit;
        this.contacts = contacts;
        this.contactNumber = contactNumber;
        this.email = email;
        this.employmentAgency = employmentAgency;
    }
    
    // Getter and Setter methods
    public String getTrainingDate() { return trainingDate; }
    public void setTrainingDate(String trainingDate) { this.trainingDate = trainingDate; }
    public Long getTeachingExperience() { return teachingExperience; }
    public void setTeachingExperience(Long teachingExperience) { this.teachingExperience = teachingExperience; }
    public Double getTeacher() { return teacher; }
    public void setTeacher(Double teacher) { this.teacher = teacher; }
    public String getHostUnit() { return hostUnit; }
    public void setHostUnit(String hostUnit) { this.hostUnit = hostUnit; }
    public Double getContacts() { return contacts; }
    public void setContacts(Double contacts) { this.contacts = contacts; }
    public Double getContactNumber() { return contactNumber; }
    public void setContactNumber(Double contactNumber) { this.contactNumber = contactNumber; }
    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }
    public Long getEmploymentAgency() { return employmentAgency; }
    public void setEmploymentAgency(Long employmentAgency) { this.employmentAgency = employmentAgency; }
    
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("培训日期:").append(trainingDate).append("\t");
        builder.append("授课经历:").append(teachingExperience).append("\t");
        builder.append("授课教师:").append(teacher).append("\t");
        builder.append("主办单位:").append(hostUnit).append("\t");
        builder.append("联系人:").append(contacts).append("\t");
        builder.append("联系电话:").append(contactNumber).append("\t");
        builder.append("Email:").append(email).append("\t");
        builder.append("聘用机构:").append(employmentAgency).append("\t");
        return builder.toString();
    }
}